package com.littlerpc.protocol.net.common;

import lombok.Getter;
import lombok.Setter;

/**
 *
 * @author ChengPeng
 * @date 2017/6/13
 */
@Getter
@Setter
public class RpcResponse {

    private String requestId;
    private Throwable error;
    private Object result;

    public boolean isError() {
        return  error != null;
    }
}
